/* 页面容器 */
.container {
  background-color: #f8f8f8;
  min-height: 100vh;
  padding-top: 60px;
}

/* 报告卡片 */
.reportCard {
  background-color: #fff;
  margin: 0 16px 20px 16px;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 报告标题 */
.reportTitle {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* 患者基本信息 */
.patientBasicInfo {
  font-size: 14px;
  color: #333;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

/* 检查详细信息 */
.examinationDetails {
  margin-bottom: 20px;
}

.detailRow {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
  color: #333;
}

.detailLabel {
  color: #666;
  margin-right: 8px;
  min-width: 70px;
}

.detailValue {
  color: #333;
  margin-right: 20px;
}

/* 检验结果区域 */
.resultsSection {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.resultsHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.sectionTitle {
  font-size: 14px;
  font-weight: bold;
  color: #333;
}

.copyAction {
  display: flex;
  align-items: center;
}

.copyText {
  font-size: 12px;
  color: #4A7CE8;
  cursor: pointer;
}

/* 图例说明 */
.legend {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #666;
}

.legendItem {
  display: flex;
  align-items: center;
  gap: 4px;
}

.legendSquare {
  width: 8px;
  height: 8px;
  background-color: #ff4d4f;
  border-radius: 1px;
}

.legendArrow {
  font-size: 10px;
  color: #333;
}

/* 结果表格 */
.resultsTable {
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
}

.tableHeader {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background-color: #f0f8ff;
  border-bottom: 1px solid #e8e8e8;
}

.headerCell {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: bold;
  color: #333;
  text-align: center;
  border-right: 1px solid #e8e8e8;
}

.headerCell:last-child {
  border-right: none;
}

.tableRow {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid #f0f0f0;
}

.tableRow:last-child {
  border-bottom: none;
}

.tableCell {
  padding: 8px 12px;
  font-size: 13px;
  color: #333;
  text-align: center;
  border-right: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tableCell:last-child {
  border-right: none;
}

.resultCell {
  position: relative;
  color: #ff4d4f;
  font-weight: 500;
}

.highArrow {
  margin-left: 4px;
  color: #ff4d4f;
  font-size: 10px;
}

.lowArrow {
  margin-left: 4px;
  color: #ff4d4f;
  font-size: 10px;
}

/* 人员信息区域 */
.personnelSection {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.personnelRow {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
  color: #333;
}

.personnelLabel {
  color: #666;
  margin-right: 8px;
  min-width: 50px;
}

.personnelValue {
  color: #333;
  margin-right: 20px;
}

.remarks {
  font-size: 12px;
  color: #999;
  line-height: 1.4;
}

.remarksLabel {
  color: #999;
  margin-right: 4px;
}

.remarksValue {
  color: #999;
}

/* 响应式设计 */
@media (max-width: 375px) {
  .reportCard {
    margin: 0 12px 20px 12px;
    padding: 16px;
  }
  
  .reportTitle {
    font-size: 16px;
  }
  
  .detailRow,
  .personnelRow {
    font-size: 13px;
  }
  
  .sectionTitle {
    font-size: 13px;
  }
  
  .legend {
    font-size: 11px;
    gap: 12px;
  }
  
  .headerCell,
  .tableCell {
    font-size: 12px;
    padding: 6px 8px;
  }
  
  .remarks {
    font-size: 11px;
  }
  
  .copyText {
    font-size: 11px;
  }
}

/* 表格在小屏幕上的优化 */
@media (max-width: 320px) {
  .tableHeader,
  .tableRow {
    grid-template-columns: 1fr 1fr 1fr;
  }
  
  .headerCell,
  .tableCell {
    font-size: 11px;
    padding: 4px 6px;
  }
}
